{include file="public/header" /}

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>商品出入库记录</h3>
            </div>
        </div>
    </div>
    <table class="sc-default-table">
        <thead>
        <tr class="thead">
            <th>排序</th>
            <th>单号</th>
            <th>商品名称</th>
            <th>库存调节类型</th>
            <th>调节数量</th>
            <th>调节后数量</th>
            <th>备注信息</th>
            <th>操作人</th>
            <th>操作时间</th>
        </tr>
        </thead>
        <tbody>
        {foreach name="list" item="v" key="k" }
        <tr class="hover edit">
            <td>{$k+1}</td>
            <td>{$v.order_sn}</td>
            <td>{$v.goods_name}</td>
            <td>
                {switch name="$v.log_type" }
                {case value="1"}入库{/case}
                {case value="2"}出库{/case}
                {case value="3"}下单锁定{/case}
                {case value="4"}发货{/case}
                {/switch}
            </td>
            <td>{$v.erp_storage}</td>
            <td>{$v.goods_storage}</td>
            <td>{$v.content}</td>
            <td>{$v.admin_name}</td>
            <td>{$v.create_time|date="Y-m-d H:i:s",###}</td>
        </tr>
        {/foreach}
    </table>
</div>

{$list->render()}

<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script src="{$Think.ADMIN_SITE_ROOT}/js/jquery.goods_class.js"></script>